// 获取屏幕宽度和高度
var screenWidth = window.screen.width;
var screenHeight = window.screen.height;

// 显示屏幕分辨率
console.log("当前屏幕分辨率为: " + screenWidth + "x" + screenHeight);
